﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Domain.Entities;

namespace Services
{
    public interface IEditorService
    {
        Chapter EditChapter(int? id);
        Topic EditTopic(int? id);
        Course EditCourse(int? id);
        Question EditQuestion(int? id);
        IEnumerable<Question> ViewQuestionForChapter(Chapter chapter);

        void SaveChapter(int chapterId, string chapterName, string chapterData, int topicId, int numberInOrder);
        void SaveTopic(int topicId, string topicName, int courseId, int numberInOrder);
        void SaveCourse(int id, string courseName, int numberInOrder);
        void SaveQuestion(int id, string content, int chapterId, IEnumerable<Answer> answers);
    }
}
